package com.aix.demo.activity;

import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import com.aix.android.framework.activity.BaseActivity;
import com.aix.demo.R;

public class ListViewActivity extends BaseActivity {
	
	private ListView mListView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.activity_list_view);
		
		mListView = (ListView) findViewById(R.id.listview);
		
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1);
		
		String[] arr = {"apple", "banana", "watermelon", "orange", "grape"};
		
		adapter.addAll(arr);
		
		mListView.setAdapter(adapter);
	}
}
